/**
 * Created by fangshufeng on 2018/3/26.
 */

function userReduce(state, action) {
    console.log('userName',state);
    switch (action.type) {
        case 'PRODUCT_ADD':
            return action.data;
        case 'PRODUCT_ADD2':
            return '第二种方式';
        default:
            return null;
    }
}

export default userReduce;